package com.practice.utils;

import lombok.Data;

import java.util.List;

@Data
public class PageUtils<T> {
    private int currPage; //分页起始页
    private int pageSize; //每页记录数
    private List<T> data; //列表集合
    private long totalCount; //总记录数

    public PageUtils() {

    }

    public PageUtils(List<T> data, long totalCount) {
        this.data = data;
        this.totalCount = totalCount;
    }
}
